<!-- header -->

<jsp:include page="header.jsp">
	<jsp:param name="title" value="Home"/>
</jsp:include>
<!-- / header -->
<script type="text/javascript" src="js/updates.js"></script>
<script type="text/javascript" src="js/search.js"></script>
<script type="text/javascript" src="js/tags.js"></script>
<script> window.onload=function () {
	advancedSearchInit();
	loadTagContainer();
};</script>

<!-- content -->
	<div class="body7">
		<div class="main">
			<section id="content">
				<div class="wrapper">
					<article>
						<div class="pad1">
							<h2>Advanced Search</h2>
							<div id="create_story">
								<table class="post_table">
									<tr>
										<td class="post_col1">Title</td>
										<td><input class="post_field" type="text" value="" id="keywordField"></td>
									</tr>
									<tr>
										<td class="post_col1">Author</td>
										<td><input class="post_field" type="text" value="" id="authorField"></td>
									</tr>
									<tr>
										<td class="post_col1">Tags</td>
										<td id="tags_list">
											<div class="vscroll" id="tag_container"></div>
										</td>
									</tr>
									<tr>
										<td class="post_col1">Sort By</td>
										<td>											
											<article class="col1">
												<select id="sortby">
													<option value="byview">Most Viewed</option>
													<option value="byvote">Highest Voted</option>
												</select>
											</article>
										</td>
									</tr>
								</table>
							</div>
							<br>
							<a href="#" class="button" id="post_story" onclick="advancedSearchStories()"><span><span>Show Results</span></span></a>
							
						<br />
						<br />
						<br />
						<br />
						
					<article class="col2" id="belowsearch">						
						<div class="pad_left1">
							<table class="story_list">
								<thead>
									<tr>
										<th class="story_col1 left_col">Story Title</th>										
										<th class="story_col2 left_col">Creator</th>
										<th class="story_col3">Posts</th>
										<th class="story_col4 left_col">Last Post</th>
									</tr>
								</thead>
								<tbody id="resultstable">
								</tbody>
							</table>
						</div>
					</article>
					
				</div>
			
			</section>
		</div>
	</div>
	<!-- / content -->

<!-- footer -->
<jsp:include page="footer.jsp"/>
<!-- / footer -->